package com.lxf.project.imlp;

import com.lxf.project.inteface.IHelloWorld;
import com.lxf.project.inteface.entity.Student;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Component;

@Component("helloComponent")
public class HelloService  implements IHelloWorld {
    @DubboReference
    private IHelloWorld helloWorld;

    @Override
    public String sayHello(String name) {

        String aa =   helloWorld.sayHello(name);
        System.out.println(name);
        System.out.println(aa);
       return aa;
    }

    @Override
    public void addStudent(Student student) {

    }

}
